<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="../Include/Conn.asp" -->
<!--#include file="seeion.asp"-->
<%
call chkAdmin("|1")
set config=server.createobject("adodb.recordset") 
exec="select top 1 * from  config" 
config.open exec,conn,1,1
WebURL = "http://"&request.servervariables("server_name")&"" 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站基本设置</title>
<link rel="stylesheet" type="text/css" id="css" href="images/style.css">
</head>
<body>
<%if Request.QueryString("action")="admin" then%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td height="30" class="topnav"><div>网站基本设置</div></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">
<form  name="add" method="post" action="admin_xtsz.asp?action=admin&eidt=wzsz">
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="stable">
      <tr >
        <td width="13%" height="25" align="right" class="td">主网站名称</td>
        <td width="87%"  class="td"><input name="title" type="text" value="<%=config("title")%>" size="40" class="inp" /><input name="id" type="hidden" value="<%=config("id")%>" size="50" /></td>
      </tr>
      <tr>
        <td width="13%" height="7" align="right" class="td">网站域名</td>
        <td class="td"><input name="url" type="text" class="inp"  value="<%=config("url")%>" size="40" />
		<input type=button name=button class="btn" value="设为当前域名" onclick="document.add.url.value='<%=WebURL%>'">你当前的域名为：<%=WebURL%></td>
      </tr>
      <tr>
        <td width="13%" height="6" align="right" class="td">网站LOGO</td>
        <td class="td"><table width="200" border="0" cellspacing="0" cellpadding="0">
          <tr>
              <td><input name="logo" type="text" class="inp" value="<%=config("logo")%>" size="40" /></td>
              <td><iframe src="up.asp?formname=add&inputname=logo&uploadstyle=logo" frameborder="0" scrolling="no" width="250" height="28"></iframe></td>
            </tr>
      </table></td>
        </tr>
      <tr>
        <td width="13%" height="3" align="right" class="td">LOGO尺寸</td>
        <td class="td"><input name="logoiwidth" type="text" class="inp"  value="<%=config("logoiwidth")%>" size="10" />×
          <input name="logoheight" type="text" class="inp"  value="<%=config("logoheight")%>" size="10" /></td>
      </tr>
	  <tr>
        <td height="25" align="right" class="td">网页关键字</td>
        <td class="td"><textarea name="keywords" cols="50" rows="3" class="tex" ><%=config("keywords")%></textarea></td>
      </tr>
      <tr>
        <td height="25" align="right" class="td">网站描述</td>
        <td class="td"><textarea name="description" cols="50" rows="3" class="tex"><%=config("description")%></textarea></td>
      </tr>
	  
      <tr>
        <td height="25" align="right" class="td"><p>底部版权信息<br>[支持HTML]</p>          </td>
        <td class="td"><textarea name="copyright" cols="50" rows="3" disabled readonly class="tex"><%=config("copyright")%></textarea> 免费版必须保留版权信息</td>
      </tr>
	  <tr>
        <td width="13%" height="25" align="right" class="td">联 系 人</td>
        <td class="td"><input name="name" type="text" class="inp" value="<%=config("name")%>" size="40" /></td>
      </tr>
	   <tr>
        <td height="25" align="right" class="td">联系手机</td>
        <td class="td"><input name="Phone" type="text" class="inp" value="<%=config("Phone")%>" size="40" /></td>
      </tr>
      <tr>
        <td height="25" align="right" class="td">公司邮箱</td>
        <td class="td"><input name="mail" type="text" class="inp" value="<%=config("mail")%>"  size="40" /></td>
      </tr>

      <tr>
        <td height="25" align="right" class="td">公司电话</td>
        <td class="td"><input name="tel" type="text" class="inp" value="<%=config("tel")%>" size="40" /></td>
      </tr>
      <tr>
        <td height="25" align="right" class="td">公司传真</td>
        <td class="td"><input name="fax" type="text" class="inp"  value="<%=config("fax")%>" size="40" /></td>
      </tr>
      <tr>
        <td height="25" align="right" class="td">邮政编码</td>
        <td class="td"><input name="Postal" type="text" class="inp"  value="<%=config("Postal")%>" size="40" /></td>
      </tr>
       <tr>
        <td height="25" align="right" class="td">公司地址</td>
        <td class="td"><input name="dz" type="text" class="inp" id="textfield8" value="<%=config("dz")%>" size="40" /></td>
      </tr>
      <tr>
        <td height="25" align="right" class="td">站长QQ</td>
        <td class="td"><input name="zzqq" type="text" class="inp"  value="<%=config("zzqq")%>" size="40" /></td>
      </tr>
      <tr>
        <td height="25" align="right" class="td">ICP备案编号</td>
        <td class="td"><input name="beian" type="text" class="inp" value="<%=config("beian")%>" /></td>
      </tr>
      <tr>
        <td height="25" align="right" class="td">网站访问量</td>
        <td class="td"><input name="js" type="text" class="inp"  value="<%=config("js")%>" /></td>
      </tr>

<tr>
        <td height="25" align="right" class="td" >是否关闭网站</td>
        <td class="td"><label class="inp"><input type="radio" name="on" value="0" <%if config("on")=0 then%>checked<%end if%> />开放网站</label>
          <label class="inp"><input type="radio" name="on" value="1" <%if config("on")=1 then%>checked<%end if%> />关闭网站</label></td>
      </tr>
	  <tr>
        <td height="25" align="right" class="td">关闭说明</td>
        <td class="td"><textarea name="off_sm" style="width:370px"  cols="50" rows="2" class="tex"><%=config("off_sm")%></textarea></td>
    </tr>
	  <tr>
        <td height="25" align="right" class="td">视频展示地址</td>
        <td class="td"><input name="video_sz" type="text" style="width:370px"  class="inp" value="<%=config("video_sz")%>" size="50" /></td>
      </tr>
      <tr>
        <td width="13%" height="25" align="right" class="td">网站统计代码</td>
        <td width="87%" class="td"><textarea name="zztj"  cols="50" rows="3" class="tex" style="width:370px"><%=config("zztj")%></textarea>* 注:不要用“站长统计”</td>
	  </tr>	  
     <tr>
        <td height="25" align="right" class="td">频道导航信息[支持HTML]</td>
        <td class="td"><textarea name="daohangnr" cols="50" rows="3" class="tex" style="width:370px"><%=config("daohangnr")%></textarea></td>
     </tr>		
   
      <tr>
        <td height="47" class="td">&nbsp;</td>
        <td class="td"><label><input type="submit" name="button" id="button" value="保存配置" class="btn" /></label></td>
      </tr>
    </table>
    </form>	
    </td>
  </tr>
</table>
<% End If %>

<%if Request.QueryString("action")="video" then%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td height="30" class="topnav"><div>网站形象视频</div></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF">
<form  name="add" method="post" action="admin_xtsz.asp?action=video&eidt=spok">
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="0" class="stable">
      <tr>
        <td width="13%" height="6" align="right" class="td">视频地址</td>
        <td width="87%" class="td"><table width="200" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td>视频地址仅支持FLV 格式，以及优酷视频调用</td>
            </tr>
          <tr>
            <td><input name="id" type="hidden" value="<%=config("id")%>" size="50" /> <input name="video_sz" type="text" class="inp" value="<%=config("video_sz")%>" size="40" /></td>
            </tr>
            <tr>
            <td><iframe src="up.asp?formname=add&inputname=video_sz&uploadstyle=logo" frameborder="0" scrolling="no" width="250" height="28"></iframe></td>
            </tr>
          </table></td>
      </tr>	  
      <tr>
        <td height="47" class="td">&nbsp;</td>
        <td class="td"><label><input type="submit" name="button" id="button" value="保存配置" class="btn" /></label></td>
      </tr>
    </table>
    </form>	
    </td>
  </tr>
</table>
<% End If %>
</body>
</html>
<% 
if Request.QueryString("eidt")="wzsz" then
id=request("id")  
sql="select * from config where id="&id 
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
zztj=request("zztj")
if Instr(zztj,"cnzz.com")>0 then  
Response.Write "<script language=javascript>alert('请不要用站长统计，没看到右边有说明吗？');history.go(-1)</script>"
response.end 
end if 
title=request("title")
if len(title)>80 then  
Response.Write "<script language=javascript>alert('网站优化建议，网站标题不搬不要超过80个字？');history.go(-1)</script>"
response.end 
end if
rs("title")=request.form("title")
rs("url")=request.form("url")
rs("logo")=request.form("logo") 
rs("logoiwidth")=request.form("logoiwidth") 
rs("logoheight")=request.form("logoheight") 
rs("name")=request.form("name")
rs("Phone")=request.form("Phone")
rs("mail")=request.form("mail")
rs("tel")=request.form("tel")
rs("fax")=request.form("fax")
rs("Postal")=request.form("Postal")
rs("dz")=request.form("dz")
rs("zzqq")=request.form("zzqq")
rs("beian")=request.form("beian") 
rs("js")=request.form("js") 
rs("keywords")=request.form("keywords")  
rs("description")=request.form("description") 
rs("on")=request.form("on") 
rs("off_sm")=request.form("off_sm") 
rs("zztj")=request.form("zztj")
rs("video_sz")=request.form("video_sz")
rs("daohangnr")=request.form("daohangnr")
rs.update 
rs.close 
response.write "<script>alert('网站设置成功!');window.location.href='admin_xtsz.asp?action=admin';</script>"  
end if

if Request.QueryString("eidt")="spok" then
id=request("id")  
sql="select * from config where id="&id 
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,3
rs("video_sz")=request.form("video_sz")
rs.update 
rs.close 
response.write "<script>alert('视频设置成功!');window.location.href='admin_xtsz.asp?action=video';</script>"  
end if
%> 
